<template>
  <HModal :visible="visible" title="设置" @ok="close" @cancel="close">
    <div>
      查询条件字段为空处理规则:
    </div>
    <div style="margin: 10px 0">
      如果关联条件为空, 则按以下规则处理:
    </div>
    <a-radio-group v-model="autoRelation.relationConditionQueryStrategy">
      <div>
        <a-radio value="1">任意一个为空时, 按照字段 =null 查询(系统默认规则)</a-radio>
      </div>
      <div style="margin: 10px 0">
        <a-radio value="2">任意一个为空时, 查询返回结果为空</a-radio>
      </div>
    </a-radio-group>
  </HModal>
</template>
<script>
import HModal from '@comp/hhd/HModal/HModal.vue';
import {createProps} from '@/utils';
import {createAuto} from '@comp/hhd/design/relation/types';
export default {
  name: 'AutoRelationStrategy',
  components: {
    HModal,
  },
  props: {
    autoRelation: createProps(Object, createAuto),
  },
  data() {
    return {
      visible: false
    }
  },
  methods: {
    open() {
      this.visible = true;
    },
    close() {
      this.visible = false
    },
  }
}
</script>